<title>Survive Smoke-Free</title>
font-family: Arial, sans-serif;
<h2>Choose a Path to a Healthy Life</h2>
<div id="game-container">
<div id="score">Score: 0</div>
<a href="#" class="button" onclick="chooseOption('quit')">Quit Smoking</a>
<a href="#" class="button" onclick="chooseOption('exercise')">Exercise Regularly</a>
<a href="#" class="button" onclick="chooseOption('eat')">Eat a Balanced Diet</a>
<a href="#" class="button" onclick="chooseOption('hydrate')">Stay Hydrated</a>
<div id="final-score" style="display: none;">
<h2>Final Score: <span id="final-score-value"></span></h2>
<p>Thank you for playing! Make healthy choices to live a smoke-free life.</p>
<button class="button" onclick="resetGame()">Play Again</button>
var message = document.getElementById('message');
var buttons = document.getElementById('buttons');
var finalScoreContainer = document.getElementById('final-score');
var finalScoreValue = document.getElementById('final-score-value');
function chooseOption(option) {
buttons.style.display = 'none';
message.textContent = 'Congratulations! Quitting smoking greatly reduces the risk of various diseases.';
} else if (option === 'exercise') {
message.textContent = 'Great choice! Regular exercise improves overall health and reduces the impact of smoking.';
} else if (option === 'eat') {
message.textContent = 'Well done! A balanced diet supports a healthy immune system and reduces smoking-related risks.';
} else if (option === 'hydrate') {
message.textContent = 'Stay hydrated! Drinking plenty of water helps in flushing out toxins from the body.';
var scoreDisplay = document.getElementById('score');
scoreDisplay.textContent = 'Score: ' + score;
finalScoreValue.textContent = score;
finalScoreContainer.style.display = 'block';
message.style.display = 'none';
buttons.style.display = 'block';
finalScoreContainer.style.display = 'none';
message.style.display = 'block';